package com.dev1.pack01web.bean;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "province")
public class Province {
    @Id
    private String name;
    private Integer nums;

    public Province(String name, Integer nums) {
        this.name = name;
        this.nums = nums;
    }

    public Province() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    @Override
    public String toString() {
        return "Province{" +
                "name='" + name + '\'' +
                ", nums=" + nums +
                '}';
    }
}
